package adapter.entrust;

import adapter.Banner;
import adapter.entrust.Print;
import adapter.entrust.PrintBanner;

/**
 * 委托实现adapter交给他人处理
 */
public class Main {
    public static void main(String[] args) {
        Print p = new PrintBanner(new Banner("hello"));
        p.printWeak();
        p.printStrong();
    }
}
